package com.butterfly.service;

import com.butterfly.domain.dao.MerchantAdDAO;
import com.butterfly.domain.entity.MerchantAd;
import org.springframework.transaction.annotation.Transactional;

import javax.inject.Inject;
import javax.inject.Named;
import java.util.List;


@Named
@Transactional(readOnly = true)
public class MerchantAdServiceImpl implements MerchantAdService {

    @Inject
    MerchantAdDAO merchantAdDao;


    @Override
    public List<MerchantAd> getMerchantAdList(int firstResult, int maxResults) {
        return merchantAdDao.getMerchantAdList(firstResult, maxResults);
    }
}
